<template>
  <div class="detail">
    {{ data.title }}
  </div>
</template>

<script>
import router from "@/router/router";
import { queryDetail } from "@/server/home";

export default {
  async setup() {
    console.log(13, router.currentRoute.value.query.id);
    const { data } = await queryDetail({
      id: router.currentRoute.value.query.id,
    });
    return { data };
  },
};
</script>

<style>
</style>